import React, { useEffect } from 'react';
import Person from './person';
import Student from './student';

function clazz() {
  const p = new Person('tom');
  const p2 = Person.create('jerry');
  const p3 = Reflect.construct(Student, ['curry', 26]);

  p.say();
  p2.say();
  p3.hello();
}

export default function Async() {
  useEffect(clazz, null);

  return (
    <div id="content">
      <p>clazz</p>
    </div>
  );
}
